/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.ejb.metier;

import javax.ejb.Stateless;

/**
 *
 * @author Wanted
 * Class used to manage the configuration
 * 
 */
@Stateless
public class ConfigManagerBean implements IConfigManager {

   private int nbBooksDisplayed;
   
    /**
     * 
     * Update the number's value to diplay
     * @param nb the new number
     * 
     */
    @Override
   public void updateNbBooksDisplayed(int nb) {
      AdminConfigXML.setPageNumber(nb);
   }
    
    /**
     * 
     * Return the current number's value to diplay
     * @param nb the new number
     * 
     */
    @Override
   public int getNbBookDisplayed()
   {
       String t = AdminConfigXML.getPageNumber();
       return Integer.valueOf(t);
   }
}
